<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FitnessMVC.Data.UserProfile>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Create
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>No Profile Found</h2>

    <%= Html.ValidationSummary("Create was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm("Create", "UserProfile")) {%>

        <fieldset>
            <legend>Create a Profile to get started.</legend>            
            <p>
                <label for="FirstName">
                    First Name:</label>
                <%= Html.TextBox("FirstName") %>
                <%= Html.ValidationMessage("FirstName", "*") %>
            </p>
            <p>
                <label for="LastName">
                    Last Name:</label>
                <%= Html.TextBox("LastName") %>
                <%= Html.ValidationMessage("LastName", "*") %>
            </p>
            <p>
                <label for="BirthDate">
                    BirthDate XX-XX-XXXX:</label>
                <%= Html.TextBox("BirthDate") %>
                <%= Html.ValidationMessage("BirthDate", "*") %>
            </p>
            <p>
                <label for="Sex">
                    Sex:</label>
                Male <%= Html.RadioButton("Sex", 'm', true)%> Female <%= Html.RadioButton("Sex", 'f', new { title = "Female" })%>
                <%= Html.ValidationMessage("Sex", "*") %>
            </p>            
            
            <p>
                <label for="Hometown">
                    Hometown:</label>
                <%= Html.TextBox("Hometown", "Boston, MA") %>
                <%= Html.ValidationMessage("Hometown", "*") %>
            </p>
            <p>
                <label for="AboutMe">
                    Tell us about yourself:</label>
                <%= Html.TextArea("AboutMe", new { rows = "10", cols = "50" })%>
                <%= Html.ValidationMessage("AboutMe", "*") %>
            </p>
            <p>
                <label for="IsPublic">
                    Make your profile public?</label>
                <%= Html.CheckBox("IsPublic", true) %> Yes
                <%= Html.ValidationMessage("IsPublic", "*") %>
            </p>
            <%= Html.Hidden("MemberSince", DateTime.Now.ToString("MM-dd-yyyy")) %>
            <p>
                <input type="submit" value="Create" />
            </p>
            
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

